package com.cx.demo;

import com.cx.demo.bean.Hello;
import com.cx.demo.configure.JavaConfigure;
import com.cx.demo.configure.ScanConfigure;
import com.cx.demo.inter.ShowDir;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * @author xiongmin
 * @version 1.0
 * @date 20-8-19 下午2:28
 */
public class IocApp6 {
    public static void main(String[] args) {
        AnnotationConfigApplicationContext ctx = new AnnotationConfigApplicationContext(JavaConfigure.class);
        ShowDir dir = (ShowDir)ctx.getBean("dircmd");
        System.out.println(dir.showDir());
    }
}
